package com.lesama.lambda.test;

import java.util.Random;

public class Calculator {
    public static void main(String[] args) {
        useCalculateHandler((a, b) -> a * b);
    }
    public static void useCalculateHandler(CalculateHandler calculateHandler) {
        System.out.println(calculateHandler.calc(new Random().nextInt(100) + 1, new Random().nextInt(100) + 1));;
    }
}


interface CalculateHandler {
    int calc(int a, int b);
}